package com.jic.order.service;

import com.alibaba.fastjson.JSONObject;
import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.RestResult;
import com.jic.order.entity.OrderPay;
import com.jic.common.base.vo.PageResult;
import com.jic.order.request.PayOrderRequest;

import java.util.List;
import java.util.Map;

/**
 * 订单支付
 *
 * @version : v1.0.0
 */
public interface OrderPayService {

	long insert(OrderPay orderPay);

	long delete(Long id);

	long update(OrderPay orderPay);

	OrderPay queryByPrimaryKey(Long id);

	List<OrderPay> query(OrderPay orderPay);

	PageResult<OrderPay> queryPage(OrderPay orderPay, Page pageQuery);

	RestResult<Map<String,String>> payOrder(PayOrderRequest payOrderRequest);

	RestResult<JSONObject> prePayOrderCheck(PayOrderRequest payOrderRequest);

	RestResult<JSONObject> refundOrder(PayOrderRequest payOrderRequest);

	RestResult<JSONObject> refundOrderCheck(PayOrderRequest payOrderRequest);

	RestResult<JSONObject> getPwd(JSONObject jsonObject);

}